package com.edu.service.impl;
/*
 * @Author:princess
 * @Date 2023/11/7 11 07 19:25
 *
 */

import com.edu.bean.Goods;
import com.edu.mapper.GoodsMapper;
import com.edu.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
    @Resource
    private GoodsMapper goodsMapper;
    @Override
    public int deleteById(int id) {
        return goodsMapper.deleteById(id);
    }

    @Override
    public Goods selectGoodsById(int id) {
        return goodsMapper.selectGoodsById(id);
    }

    @Override
    public List<Goods> selectGoodsAndShop(Goods goods) {
        System.out.println(goodsMapper.selectGoodsAndShop(goods));
        return goodsMapper.selectGoodsAndShop(goods);
    }
}
